//
//  ZKJScrollCollectionViewCell.m
//  ScrollCollectionVIew
//
//  Created by dllo on 15/11/26.
//  Copyright © 2015年 ZKJ. All rights reserved.
//

#import "ZKJScrollCollectionViewCell.h"

@implementation ZKJScrollCollectionViewCell


- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        [self addSubview:self.imageViews];
    }
    return self;
}

- (void)applyLayoutAttributes:(UICollectionViewLayoutAttributes *)layoutAttributes {
    self.imageViews.frame = CGRectMake(0, 0, self.frame.size.width, self.frame.size.height);
}

- (UIImageView *)imageViews {
    if (!_imageViews) {
        _imageViews = [[UIImageView alloc] initWithFrame:CGRectZero];
        _imageViews.contentMode = UIViewContentModeScaleToFill;
        _imageViews.clipsToBounds = YES;
    }
    return _imageViews;
}

@end
